﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Import Namespace="Crimson" %>
<%@ Import Namespace="JinTai.WebSite" %>
<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    金台佛教在线
</asp:Content>
<asp:Content ID="header" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        #news
        {
            float: left;
            width: 360px;
        }
      
        #leftPanel
        {
            float: left;
            width: 270px;
        }
        #foxueTips
        {
            float: left;
            width: 280px;
        }
        .fashi
        {
            list-style: none;
        }
        .fashi .header
        {
            font-weight: bold;
            font-size: larger;
            display: block;
        }
        .fashi li
        {
            margin-bottom:5px;
        }
    </style>

    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            $("#news").tabs();

        }); 
    </script>

</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="ui-widget ui-widget-content ui-corner-all panel" id="foxueTips">
        <div class="ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all panel-header">
            <h3>
                佛事提要</h3>
        </div>
        <%
            if (ViewData["fashi"] != null)
            {
        %>
        <ul class="fashi panelContent">
            <%
                foreach (var item in ((FashiSchedule)ViewData["fashi"]).Items)
                {
            %>
            <li>
                <div class="header">
                    <%=item.Subject%></div>
                <%=item.TimeExpress()%>
            </li>
            <%
                }
            }
            %>
        </ul>
    </div>
    <div id="news" class="panel">
        <ul>
            <li><a href="#jintaisi">金台寺</a></li>
            <li><a href="#baiyigusi">白衣古寺</a></li>
            <li><a href="#yinxiusi">隐秀寺</a></li>
            <li><a href="#henancanyuan">河南禅院</a></li>
        </ul>
        <div id="jintaisi">
            <ul>
                <%
                    foreach (var item in (IList<Info>)ViewData["金台寺"])
                    {
                %>
                        <li><a href='<%=Url.Action("Show","News")%>/<%=item.Id %>'> <%=item.Title %></a></li>
                <%
                    }

                %>
            </ul>
        </div>
        <div id="baiyigusi">
          <ul>
                <%
                    foreach (var item in (IList<Info>)ViewData["白衣古寺"])
                    {
                %>
                        <li><a href='<%=Url.Action("Show","News")%>/<%=item.Id %>'> <%=item.Title %></a></li>
                <%
                    }

                %>
            </ul>
        </div>
        <div id="yinxiusi">
          <ul>
                <%
                    foreach (var item in (IList<Info>)ViewData["隐秀寺"])
                    {
                %>
                        <li><a href='<%=Url.Action("Show","News")%>/<%=item.Id %>'> <%=item.Title %></a></li>
                <%
                    }

                %>
            </ul>
        </div>
        <div id="henancanyuan">
          <ul>
                <%
                    foreach (var item in (IList<Info>)ViewData["河南禅院"])
                    {
                %>
                        <li><a href='<%=Url.Action("Show","News")%>/<%=item.Id %>'> <%=item.Title %></a></li>
                <%
                    }

                %>
            </ul>
        </div>
    </div>
    <div id="leftPanel">
        <div class="ui-widget ui-widget-content ui-corner-all panel" id="kaishi">
            <div class="ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all panel-header">
                <h3>
                    印光大师开示</h3>
            </div>
            <div class="panelContent">
                &nbsp;&nbsp; 无论在家出家，必须上敬下和，忍人所不能忍，行人所不能行，代人之劳，成人之美，静坐常思己过，闲谈不论人非，行住坐卧，穿衣吃饭，从朝至暮，从暮至朝，一句佛号，不令间断；或小声念，或默念，除念佛外，不起别念，若或妄念一起，当下就要教它消灭。常生惭愧心及忏悔心。
                纵有修持，总觉我功夫很浅，不自矜夸，只管自家，不管人家；只看好样子，不看坏样子。看一切人都是菩萨，唯我一人实是凡夫。果能依我所说修行，决定可生西方极乐世界
            </div>
        </div>
        <div class="ui-widget ui-widget-content ui-corner-all panel" id="foxuejingdian">
            <div class="ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all panel-header">
                <h3>
                    佛学经典</h3>
            </div>
            <div class="panelContent">
                1
            </div>
        </div>
    </div>
    <div style="clear: both">
    </div>
</asp:Content>
